﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000E0F RID: 3599
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class ReplaceLineupCsReq : IMessage<ReplaceLineupCsReq>, IMessage, IEquatable<ReplaceLineupCsReq>, IDeepCloneable<ReplaceLineupCsReq>, IBufferMessage
	{
		// Token: 0x17002DBE RID: 11710
		// (get) Token: 0x0600A1A1 RID: 41377 RVA: 0x001B0747 File Offset: 0x001AE947
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<ReplaceLineupCsReq> Parser
		{
			get
			{
				return ReplaceLineupCsReq._parser;
			}
		}

		// Token: 0x17002DBF RID: 11711
		// (get) Token: 0x0600A1A2 RID: 41378 RVA: 0x001B074E File Offset: 0x001AE94E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return ReplaceLineupCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17002DC0 RID: 11712
		// (get) Token: 0x0600A1A3 RID: 41379 RVA: 0x001B0760 File Offset: 0x001AE960
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return ReplaceLineupCsReq.Descriptor;
			}
		}

		// Token: 0x0600A1A4 RID: 41380 RVA: 0x001B0767 File Offset: 0x001AE967
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ReplaceLineupCsReq()
		{
		}

		// Token: 0x0600A1A5 RID: 41381 RVA: 0x001B077C File Offset: 0x001AE97C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ReplaceLineupCsReq(ReplaceLineupCsReq other) : this()
		{
			this.leaderSlot_ = other.leaderSlot_;
			this.index_ = other.index_;
			this.lineupSlotList_ = other.lineupSlotList_.Clone();
			this.extraLineupType_ = other.extraLineupType_;
			this.gameStoryLineId_ = other.gameStoryLineId_;
			this.isVirtual_ = other.isVirtual_;
			this.planeId_ = other.planeId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600A1A6 RID: 41382 RVA: 0x001B07F9 File Offset: 0x001AE9F9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ReplaceLineupCsReq Clone()
		{
			return new ReplaceLineupCsReq(this);
		}

		// Token: 0x17002DC1 RID: 11713
		// (get) Token: 0x0600A1A7 RID: 41383 RVA: 0x001B0801 File Offset: 0x001AEA01
		// (set) Token: 0x0600A1A8 RID: 41384 RVA: 0x001B0809 File Offset: 0x001AEA09
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint LeaderSlot
		{
			get
			{
				return this.leaderSlot_;
			}
			set
			{
				this.leaderSlot_ = value;
			}
		}

		// Token: 0x17002DC2 RID: 11714
		// (get) Token: 0x0600A1A9 RID: 41385 RVA: 0x001B0812 File Offset: 0x001AEA12
		// (set) Token: 0x0600A1AA RID: 41386 RVA: 0x001B081A File Offset: 0x001AEA1A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Index
		{
			get
			{
				return this.index_;
			}
			set
			{
				this.index_ = value;
			}
		}

		// Token: 0x17002DC3 RID: 11715
		// (get) Token: 0x0600A1AB RID: 41387 RVA: 0x001B0823 File Offset: 0x001AEA23
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<LineupSlotData> LineupSlotList
		{
			get
			{
				return this.lineupSlotList_;
			}
		}

		// Token: 0x17002DC4 RID: 11716
		// (get) Token: 0x0600A1AC RID: 41388 RVA: 0x001B082B File Offset: 0x001AEA2B
		// (set) Token: 0x0600A1AD RID: 41389 RVA: 0x001B0833 File Offset: 0x001AEA33
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ExtraLineupType ExtraLineupType
		{
			get
			{
				return this.extraLineupType_;
			}
			set
			{
				this.extraLineupType_ = value;
			}
		}

		// Token: 0x17002DC5 RID: 11717
		// (get) Token: 0x0600A1AE RID: 41390 RVA: 0x001B083C File Offset: 0x001AEA3C
		// (set) Token: 0x0600A1AF RID: 41391 RVA: 0x001B0844 File Offset: 0x001AEA44
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint GameStoryLineId
		{
			get
			{
				return this.gameStoryLineId_;
			}
			set
			{
				this.gameStoryLineId_ = value;
			}
		}

		// Token: 0x17002DC6 RID: 11718
		// (get) Token: 0x0600A1B0 RID: 41392 RVA: 0x001B084D File Offset: 0x001AEA4D
		// (set) Token: 0x0600A1B1 RID: 41393 RVA: 0x001B0855 File Offset: 0x001AEA55
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool IsVirtual
		{
			get
			{
				return this.isVirtual_;
			}
			set
			{
				this.isVirtual_ = value;
			}
		}

		// Token: 0x17002DC7 RID: 11719
		// (get) Token: 0x0600A1B2 RID: 41394 RVA: 0x001B085E File Offset: 0x001AEA5E
		// (set) Token: 0x0600A1B3 RID: 41395 RVA: 0x001B0866 File Offset: 0x001AEA66
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint PlaneId
		{
			get
			{
				return this.planeId_;
			}
			set
			{
				this.planeId_ = value;
			}
		}

		// Token: 0x0600A1B4 RID: 41396 RVA: 0x001B086F File Offset: 0x001AEA6F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as ReplaceLineupCsReq);
		}

		// Token: 0x0600A1B5 RID: 41397 RVA: 0x001B0880 File Offset: 0x001AEA80
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(ReplaceLineupCsReq other)
		{
			return other != null && (other == this || (this.LeaderSlot == other.LeaderSlot && this.Index == other.Index && this.lineupSlotList_.Equals(other.lineupSlotList_) && this.ExtraLineupType == other.ExtraLineupType && this.GameStoryLineId == other.GameStoryLineId && this.IsVirtual == other.IsVirtual && this.PlaneId == other.PlaneId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600A1B6 RID: 41398 RVA: 0x001B0920 File Offset: 0x001AEB20
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.LeaderSlot != 0U)
			{
				num ^= this.LeaderSlot.GetHashCode();
			}
			if (this.Index != 0U)
			{
				num ^= this.Index.GetHashCode();
			}
			num ^= this.lineupSlotList_.GetHashCode();
			if (this.ExtraLineupType != ExtraLineupType.LineupNone)
			{
				num ^= this.ExtraLineupType.GetHashCode();
			}
			if (this.GameStoryLineId != 0U)
			{
				num ^= this.GameStoryLineId.GetHashCode();
			}
			if (this.IsVirtual)
			{
				num ^= this.IsVirtual.GetHashCode();
			}
			if (this.PlaneId != 0U)
			{
				num ^= this.PlaneId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600A1B7 RID: 41399 RVA: 0x001B09F0 File Offset: 0x001AEBF0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600A1B8 RID: 41400 RVA: 0x001B09F8 File Offset: 0x001AEBF8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600A1B9 RID: 41401 RVA: 0x001B0A04 File Offset: 0x001AEC04
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.GameStoryLineId != 0U)
			{
				output.WriteRawTag(24);
				output.WriteUInt32(this.GameStoryLineId);
			}
			if (this.PlaneId != 0U)
			{
				output.WriteRawTag(32);
				output.WriteUInt32(this.PlaneId);
			}
			this.lineupSlotList_.WriteTo(ref output, ReplaceLineupCsReq._repeated_lineupSlotList_codec);
			if (this.Index != 0U)
			{
				output.WriteRawTag(72);
				output.WriteUInt32(this.Index);
			}
			if (this.IsVirtual)
			{
				output.WriteRawTag(80);
				output.WriteBool(this.IsVirtual);
			}
			if (this.LeaderSlot != 0U)
			{
				output.WriteRawTag(88);
				output.WriteUInt32(this.LeaderSlot);
			}
			if (this.ExtraLineupType != ExtraLineupType.LineupNone)
			{
				output.WriteRawTag(112);
				output.WriteEnum((int)this.ExtraLineupType);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600A1BA RID: 41402 RVA: 0x001B0AE0 File Offset: 0x001AECE0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.LeaderSlot != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.LeaderSlot);
			}
			if (this.Index != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Index);
			}
			num += this.lineupSlotList_.CalculateSize(ReplaceLineupCsReq._repeated_lineupSlotList_codec);
			if (this.ExtraLineupType != ExtraLineupType.LineupNone)
			{
				num += 1 + CodedOutputStream.ComputeEnumSize((int)this.ExtraLineupType);
			}
			if (this.GameStoryLineId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.GameStoryLineId);
			}
			if (this.IsVirtual)
			{
				num += 2;
			}
			if (this.PlaneId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.PlaneId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600A1BB RID: 41403 RVA: 0x001B0BA0 File Offset: 0x001AEDA0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(ReplaceLineupCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.LeaderSlot != 0U)
			{
				this.LeaderSlot = other.LeaderSlot;
			}
			if (other.Index != 0U)
			{
				this.Index = other.Index;
			}
			this.lineupSlotList_.Add(other.lineupSlotList_);
			if (other.ExtraLineupType != ExtraLineupType.LineupNone)
			{
				this.ExtraLineupType = other.ExtraLineupType;
			}
			if (other.GameStoryLineId != 0U)
			{
				this.GameStoryLineId = other.GameStoryLineId;
			}
			if (other.IsVirtual)
			{
				this.IsVirtual = other.IsVirtual;
			}
			if (other.PlaneId != 0U)
			{
				this.PlaneId = other.PlaneId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600A1BC RID: 41404 RVA: 0x001B0C51 File Offset: 0x001AEE51
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600A1BD RID: 41405 RVA: 0x001B0C5C File Offset: 0x001AEE5C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 50U)
				{
					if (num == 24U)
					{
						this.GameStoryLineId = input.ReadUInt32();
						continue;
					}
					if (num == 32U)
					{
						this.PlaneId = input.ReadUInt32();
						continue;
					}
					if (num == 50U)
					{
						this.lineupSlotList_.AddEntriesFrom(ref input, ReplaceLineupCsReq._repeated_lineupSlotList_codec);
						continue;
					}
				}
				else if (num <= 80U)
				{
					if (num == 72U)
					{
						this.Index = input.ReadUInt32();
						continue;
					}
					if (num == 80U)
					{
						this.IsVirtual = input.ReadBool();
						continue;
					}
				}
				else
				{
					if (num == 88U)
					{
						this.LeaderSlot = input.ReadUInt32();
						continue;
					}
					if (num == 112U)
					{
						this.ExtraLineupType = (ExtraLineupType)input.ReadEnum();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x04003E6B RID: 15979
		private static readonly MessageParser<ReplaceLineupCsReq> _parser = new MessageParser<ReplaceLineupCsReq>(() => new ReplaceLineupCsReq());

		// Token: 0x04003E6C RID: 15980
		private UnknownFieldSet _unknownFields;

		// Token: 0x04003E6D RID: 15981
		public const int LeaderSlotFieldNumber = 11;

		// Token: 0x04003E6E RID: 15982
		private uint leaderSlot_;

		// Token: 0x04003E6F RID: 15983
		public const int IndexFieldNumber = 9;

		// Token: 0x04003E70 RID: 15984
		private uint index_;

		// Token: 0x04003E71 RID: 15985
		public const int LineupSlotListFieldNumber = 6;

		// Token: 0x04003E72 RID: 15986
		private static readonly FieldCodec<LineupSlotData> _repeated_lineupSlotList_codec = FieldCodec.ForMessage<LineupSlotData>(50U, LineupSlotData.Parser);

		// Token: 0x04003E73 RID: 15987
		private readonly RepeatedField<LineupSlotData> lineupSlotList_ = new RepeatedField<LineupSlotData>();

		// Token: 0x04003E74 RID: 15988
		public const int ExtraLineupTypeFieldNumber = 14;

		// Token: 0x04003E75 RID: 15989
		private ExtraLineupType extraLineupType_;

		// Token: 0x04003E76 RID: 15990
		public const int GameStoryLineIdFieldNumber = 3;

		// Token: 0x04003E77 RID: 15991
		private uint gameStoryLineId_;

		// Token: 0x04003E78 RID: 15992
		public const int IsVirtualFieldNumber = 10;

		// Token: 0x04003E79 RID: 15993
		private bool isVirtual_;

		// Token: 0x04003E7A RID: 15994
		public const int PlaneIdFieldNumber = 4;

		// Token: 0x04003E7B RID: 15995
		private uint planeId_;
	}
}
